// 倒数
function count(index) {
  console.log(index)
  if (index > 0) {
    count(index - 1)
  }
}
count(10)

// 斐波那契
function fib(index) {
  if (index <= 2) {
    return 1
  }
  return fib(index - 1) + fib(index - 2)
}
console.log(fib(10))
